package day6;

import day5.Student;

/**
 * @author oldliu
 * @since 1.0
 */
public class STudentTest {
    public static void main(String[] args) {
        Student s=new Student();
        s.setAge(20);
        //一年过去了，年龄+1
        //s.getAge()++;错误
        s.setAge(s.getAge()+1);
        System.out.println("这个人今年："+s.getAge());
    }
}
